package com.bw.liuyushan.liuyushan20210929.Adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bw.liuyushan.liuyushan20210929.Entity.JsonBean;
import com.bw.liuyushan.liuyushan20210929.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * Liuyushan20210929
 * file name is : TabRVAdapter
 * created by Ender on 2021/9/29 16:39.
 * author : 刘雨杉
 * Describe:
 */
public class TabRVAdapter4 extends BaseQuickAdapter<JsonBean.DataBean,BaseViewHolder> {

    public TabRVAdapter4(@Nullable List<JsonBean.DataBean> data) {
        super(R.layout.rv_tab_show4, data);

    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, JsonBean.DataBean dataBean) {
        baseViewHolder.setText(R.id.tv_rv44,dataBean.getTitle());

        Glide.with(getContext()).load(dataBean.getPic()).into((ImageView) baseViewHolder.findView(R.id.img_rv4));

    }
}
